package com.suke.czx.modules.examstack.exam.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.suke.czx.modules.examstack.exam.dao.ExamDao;
import com.suke.czx.modules.examstack.exam.entity.ExamEntity;
import com.suke.czx.modules.examstack.exam.service.ExamService;



@Service("examService")
public class ExamServiceImpl implements ExamService {
	@Autowired
	private ExamDao examDao;
	
	@Override
	public ExamEntity queryObject(Integer id){
		return examDao.queryObject(id);
	}
	
	@Override
	public List<ExamEntity> queryList(Map<String, Object> map){
		return examDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return examDao.queryTotal(map);
	}
	
	@Override
	public void save(ExamEntity exam){
		examDao.save(exam);
	}
	
	@Override
	public void update(ExamEntity exam){
		examDao.update(exam);
	}
	
	@Override
	public void delete(Integer id){
		examDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		examDao.deleteBatch(ids);
	}
	
}
